package com.study.modules.saas.repository.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.study.modules.saas.repository.enums.RoleStatus;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("role")
public class RoleDO {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("role_name")
    private String roleName;

    private RoleStatus status;

    private String remark;

    @TableField(value = "created_by")
    private String createdBy;

    @TableField(value = "created_at")
    private Date createdAt;

    @TableField(value = "updated_by")
    private String updatedBy;

    @TableField(value = "updated_at")
    private Date updatedAt;

    @TableField(value = "deleted_by")
    private String deletedBy;

    @TableField(value = "deleted_at")
    private Date deletedAt;


    @TableField(exist = false)
    private List<Integer> menuIds;

    @TableField(exist = false)
    private List<MenuDO> menuList;

}
